HMSC vs. LPI

DFO dataset example

2021-05-20

The DFO dataset (from 1995 to 2016)

Averaged linear model

Annual growth rates ~ year

HMSC

## [1] "row names were added to 'X'"
## [1] "The priors for the latent variables should be OK for Gaussian models but not necessarily for other models, be careful"

## [1] "R2"
##      19913      19945      19991      20114      20305      20335      20463 
## 0.29823124 0.07436546 0.14084097 0.55598647 0.07820008 0.33766956 0.15781763 
##      20508      21465      21617      21624      21646      21652      21720 
## 0.10560660 0.23584971 0.60868643 0.31197470 0.11885208 0.21065378 0.07263702 
##      21733      21740      21746      21777      21796      21807      21882 
## 0.20711206 0.31512177 0.38373866 0.19743836 0.55354924 0.22242238 0.16535973 
##      21996      22018      22027      22153      22237      22291      22408 
## 0.18203651 0.52911108 0.55590880 0.12580515 0.17498786 0.09768913 0.30421863 
##      22702      22708      22716      22739 
## 0.13588180 0.33575664 0.15553830 0.10927222
## [1] "R2 whole community"
## [1] 0.2518225

## [1] "row names were added to 'X'"

Comparing the slopes